#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	//short x = -4321;
	//unsigned short y = (unsigned short)x;
	//printf("x=%d,y=%u\n",x,y);
	//unsigned short x = 65535;
	//short y = (short)x;
	//printf("x=%u,y=%d\n",x,y);
	//int x = 165537, u = -34991;
	//short y = (short)x, v = (short)u;
	//printf("x=%d,y=%d\n",x,y);
	//printf("u=%d,v=%d\n",u,v);
	short x = -4321;
	int y = x;
	unsigned short u = (unsigned short)x;
	unsigned int v = u;
	printf("x=%d,y=%d\n",x,y);
	printf("u=%u,v=%u\n",u,v);
	return 0;
}